package com.phuc.game.tankshooter.sprite;

import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;
import org.anddev.andengine.util.constants.TimeConstants;

import com.phuc.game.tankshooter.MainActivity;

public class GunSprite extends AnimatedSprite implements TimeConstants {

	
	public static final int WIDTH = 70;
	public static final int HEIGHT = 80;
	
	Scene scene;
	boolean isRemoved;
	float rotation;
	int hp;
	int hpLeft;
	int timeSmoke;
	int speed;
	int timeReloadSmoke;

	public GunSprite(TiledTextureRegion pTiledTextureRegion, Scene scene) {
		super(MainActivity.SCENE_WIDTH / 2 - WIDTH / 2, 700, WIDTH, HEIGHT, pTiledTextureRegion);

		this.scene = scene;
		isRemoved = false;
		hp = 100;
		hpLeft = 100;
		speed = 11;
	}
	
	
	@Override
	public void onManagedUpdate(final float pSecondsElapsed) {
		super.onManagedUpdate(pSecondsElapsed);
	}
}
